home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Toolbox
/
Visual Basic Toolbox (P.I.E.)(1996).ISO
/
buttons
/
btntools
/
sdiform1.frm
< prev
next >
Wrap
Text File
|
1996-01-18
|
23KB
|
644 lines
VERSION 2.00
Begin Form SDIForm1
BackColor = &H00C0C0C0&
Caption = "BtnTools Example"
ClientHeight = 3630
ClientLeft = 1905
ClientTop = 2310
ClientWidth = 6525
Height = 4320
Icon = SDIFORM1.FRX:0000
Left = 1845
LinkTopic = "SDIForm1"
ScaleHeight = 3630
ScaleWidth = 6525
Top = 1680
Width = 6645
Begin Frame Frame3
BackColor = &H00C0C0C0&
Caption = "Picture Invert Buttons"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 1515
Left = 2700
TabIndex = 19
Top = 1860
Width = 3675
Begin TOOLBTN ToolBtn8
ButtonStyle = 2 'InvertPicture
ButtonType = 0 'Command
ButtonUp = -1 'True
Caption = "ToolBtn6"
FocusStyle = 0 'TextFocusRect
Height = 975
Left = 2520
PictureAlign = 7 'Middle CENTRE
PictureEnabled = SDIFORM1.FRX:0302
PictureXOffset = 0
PictureYOffset = 0
ShowFocus = -1 'True
TabIndex = 5
TextAlign = 7 'Middle CENTRE
TextXOffset = 0
TextYOffset = 0
Tip = ""
TipBackColor = &H0000FFFF&
TipDelay = 750
TipForeColor = &H00000000&
Top = 360
Width = 975
End
Begin TOOLBTN ToolBtn7
ButtonStyle = 2 'InvertPicture
ButtonType = 0 'Command
ButtonUp = -1 'True
Caption = "ToolBtn6"
FocusStyle = 0 'TextFocusRect
Height = 975
Left = 1380
PictureAlign = 7 'Middle CENTRE
PictureEnabled = SDIFORM1.FRX:073C
PictureXOffset = 0
PictureYOffset = 0
ShowFocus = -1 'True
TabIndex = 4
TextAlign = 7 'Middle CENTRE
TextXOffset = 0
TextYOffset = 0
Tip = ""
TipBackColor = &H0000FFFF&
TipDelay = 750
TipForeColor = &H00000000&
Top = 360
Width = 975
End
Begin TOOLBTN ToolBtn6
ButtonStyle = 2 'InvertPicture
ButtonType = 0 'Command
ButtonUp = -1 'True
Caption = "ToolBtn6"
FocusStyle = 0 'TextFocusRect
Height = 975
Left = 240
PictureAlign = 7 'Middle CENTRE
PictureEnabled = SDIFORM1.FRX:0B66
PictureXOffset = 0
PictureYOffset = 0
ShowFocus = -1 'True
TabIndex = 3
TextAlign = 7 'Middle CENTRE
TextXOffset = 0
TextYOffset = 0
Tip = ""
TipBackColor = &H0000FFFF&
TipDelay = 750
TipForeColor = &H00000000&
Top = 360
Width = 975
End
End
Begin Frame Frame2
BackColor = &H00C0C0C0&
Caption = "Windows 95 Style"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 1035
Left = 2700
TabIndex = 16
Top = 600
Width = 3675
Begin TOOLBTN ToolBtn4
ButtonStyle = 1 'Windows 95
ButtonType = 0 'Command
ButtonUp = -1 'True
Caption = "Enable Toolbar"
FocusStyle = 0 'TextFocusRect
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 495
Left = 120
PictureAlign = 3 'Right TOP
PictureEnabled = SDIFORM1.FRX:1040
PictureXOffset = 0
PictureYOffset = 0
ShowFocus = 0 'False
TabIndex = 18
TabStop = 0 'False
TextAlign = 1 'Left CENTRE
TextXOffset = 40
TextYOffset = 0
Tip = "Enable"
TipBackColor = &H0000FF00&
TipDelay = 750
TipForeColor = &H00000000&
Top = 360
Width = 1635
End
Begin TOOLBTN ToolBtn5
ButtonStyle = 1 'Windows 95
ButtonType = 0 'Command
ButtonUp = -1 'True
Caption = "Disable Toolbar"
FocusStyle = 0 'TextFocusRect
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 495
Left = 1860
PictureAlign = 3 'Right TOP
PictureEnabled = SDIFORM1.FRX:126A
PictureXOffset = 0
PictureYOffset = 0
ShowFocus = 0 'False
TabIndex = 17
TabStop = 0 'False
TextAlign = 1 'Left CENTRE
TextXOffset = 40
TextYOffset = 0
Tip = "Disable"
TipBackColor = &H000000FF&
TipDelay = 750
TipForeColor = &H00FFFFFF&
Top = 360
Width = 1635
End
End
Begin Frame Frame1
BackColor = &H00C0C0C0&
Caption = "Focus Buttons"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 2775
Left = 120
TabIndex = 15
Top = 600
Width = 2415
Begin TOOLBTN ToolBtn1
ButtonStyle = 0 'Windows 3.x
ButtonType = 0 'Command
ButtonUp = -1 'True
Caption = "Open File"
FocusStyle = 1 'ButtonFocusRect
Height = 675
Left = 180
PictureAlign = 1 'Left CENTRE
PictureEnabled = SDIFORM1.FRX:1428
PictureXOffset = 250
PictureYOffset = 0
ShowFocus = -1 'True
TabIndex = 1
TextAlign = 7 'Middle CENTRE
TextXOffset = 200
TextYOffset = 0
Tip = "Open an existing file"
TipBackColor = &H0000FFFF&
TipDelay = 750
TipForeColor = &H00000000&
Top = 1140
Width = 2055
End
Begin TOOLBTN ToolBtn2
ButtonStyle = 0 'Windows 3.x
ButtonType = 0 'Command
ButtonUp = -1 'True
Caption = "Save File"
FocusStyle = 2 'Text3D
Height = 675
Left = 180
PictureAlign = 1 'Left CENTRE
PictureEnabled = SDIFORM1.FRX:150A
PictureXOffset = 250
PictureYOffset = 0
ShowFocus = -1 'True
TabIndex = 2
TextAlign = 7 'Middle CENTRE
TextXOffset = 200
TextYOffset = 0
Tip = "Save the current file"
TipBackColor = &H0000FFFF&
TipDelay = 750
TipForeColor = &H00000000&
Top = 1920
Width = 2055
End
Begin TOOLBTN ToolBtn3
ButtonStyle = 0 'Windows 3.x
ButtonType = 0 'Command
ButtonUp = -1 'True
Caption = "New File"
FocusStyle = 0 'TextFocusRect
Height = 675
Left = 180
PictureAlign = 1 'Left CENTRE
PictureEnabled = SDIFORM1.FRX:1604
PictureXOffset = 250
PictureYOffset = 0
ShowFocus = -1 'True
TabIndex = 0
TextAlign = 7 'Middle CENTRE
TextXOffset = 0
TextYOffset = 0
Tip = "Create a new file"
TipBackColor = &H0000FFFF&
TipDelay = 750
TipForeColor = &H00000000&
Top = 360
Width = 2055
End
End
Begin TOOLBAR ToolBar1
Align = 1 'Align Top
Appearance = 0 '3D
BackColor = &H00C0C0C0&
Height = 435
Left = 0
Top = 0
Width = 6525
Begin TOOLBTN ToolBtnUline
ButtonStyle = 1 'Windows 95
ButtonType = 1 'Attribute
ButtonUp = -1 'True
FocusStyle = 0 'TextFocusRect
Height = 345
Left = 3300
PictureAlign = 7 'Middle CENTRE
PictureDisabled = SDIFORM1.FRX:16F6
PictureEnabled = SDIFORM1.FRX:17D8
PictureXOffset = 0
PictureYOffset = 0
ShowFocus = 0 'False
TabIndex = 22
TabStop = 0 'False
TextAlign = 7 'Middle CENTRE
TextXOffset = 0
TextYOffset = 0
Tip = "Underline"
TipBackColor = &H00C0FFFF&
TipDelay = 750
TipForeColor = &H00000000&
Top = 45
Width = 360
End
Begin TOOLBTN ToolBtnItalic
ButtonStyle = 1 'Windows 95
ButtonType = 1 'Attribute
ButtonUp = -1 'True
FocusStyle = 0 'TextFocusRect
Height = 345
Left = 2940
PictureAlign = 7 'Middle CENTRE
PictureDisabled = SDIFORM1.FRX:18BA
PictureEnabled = SDIFORM1.FRX:198C
PictureXOffset = 0
PictureYOffset = 0
ShowFocus = 0 'False
TabIndex = 21
TabStop = 0 'False
TextAlign = 7 'Middle CENTRE
TextXOffset = 0
TextYOffset = 0
Tip = "Italic"
TipBackColor = &H00C0FFFF&
TipDelay = 750
TipForeColor = &H00000000&
Top = 45
Width = 360
End
Begin TOOLBTN ToolBtnBold
ButtonStyle = 1 'Windows 95
ButtonType = 1 'Attribute
ButtonUp = -1 'True
FocusStyle = 0 'TextFocusRect
Height = 345
Left = 2580
PictureAlign = 7 'Middle CENTRE
PictureDisabled = SDIFORM1.FRX:1A5E
PictureEnabled = SDIFORM1.FRX:1B30
PictureXOffset = 0
PictureYOffset = 0
ShowFocus = 0 'False
TabIndex = 20
TabStop = 0 'False
TextAlign = 7 'Middle CENTRE
TextXOffset = 0
TextYOffset = 0
Tip = "Bold"
TipBackColor = &H00C0FFFF&
TipDelay = 750
TipForeColor = &H00000000&
Top = 45
Width = 360
End
Begin TOOLBTN ToolBtnNew
ButtonStyle = 1 'Windows 95
ButtonType = 0 'Command
ButtonUp = -1 'True
FocusStyle = 0 'TextFocusRect
Height = 345
Left = 220
PictureAlign = 7 'Middle CENTRE
PictureDisabled = SDIFORM1.FRX:1C02
PictureEnabled = SDIFORM1.FRX:1D60
PictureXOffset = 0
PictureYOffset = 0
ShowFocus = 0 'False
TabIndex = 6
TabStop = 0 'False
TextAlign = 7 'Middle CENTRE
TextXOffset = 0
TextYOffset = 0
Tip = "New"
TipBackColor = &H00C0FFFF&
TipDelay = 750
TipForeColor = &H00000000&
Top = 45
Width = 360
End
Begin TOOLBTN ToolBtnOpen
ButtonStyle = 1 'Windows 95
ButtonType = 0 'Command
ButtonUp = -1 'True
FocusStyle = 0 'TextFocusRect
Height = 345
Left = 580
PictureAlign = 7 'Middle CENTRE
PictureDisabled = SDIFORM1.FRX:1E52
PictureEnabled = SDIFORM1.FRX:1F80
PictureXOffset = 0
PictureYOffset = 0
ShowFocus = 0 'False
TabIndex = 7
TabStop = 0 'False
TextAlign = 7 'Middle CENTRE
TextXOffset = 0
TextYOffset = 0
Tip = "Open"
TipBackColor = &H00C0FFFF&
TipDelay = 750
TipForeColor = &H00000000&
Top = 45
Width = 360
End
Begin TOOLBTN ToolBtnSave
ButtonStyle = 1 'Windows 95
ButtonType = 0 'Command
ButtonUp = -1 'True
FocusStyle = 0 'TextFocusRect
Height = 345
Left = 940
PictureAlign = 7 'Middle CENTRE
PictureDisabled = SDIFORM1.FRX:20AE
PictureEnabled = SDIFORM1.FRX:21A8
PictureXOffset = 0
PictureYOffset = 0
ShowFocus = 0 'False
TabIndex = 8
TabStop = 0 'False
TextAlign = 7 'Middle CENTRE
TextXOffset = 0
TextYOffset = 0
Tip = "Save"
TipBackColor = &H00C0FFFF&
TipDelay = 750
TipForeColor = &H00000000&
Top = 45
Width = 360
End
Begin TOOLBTN ToolBtnCut
ButtonStyle = 1 'Windows 95
ButtonType = 0 'Command
ButtonUp = -1 'True
Enabled = 0 'False
FocusStyle = 0 'TextFocusRect
Height = 345
Left = 1390
PictureAlign = 7 'Middle CENTRE
PictureDisabled = SDIFORM1.FRX:22A2
PictureEnabled = SDIFORM1.FRX:23A4
PictureXOffset = 0
PictureYOffset = 0
ShowFocus = 0 'False
TabIndex = 9
TabStop = 0 'False
TextAlign = 7 'Middle CENTRE
TextXOffset = 0
TextYOffset = 0
Tip = "Cut"
TipBackColor = &H00C0FFFF&
TipDelay = 750
TipForeColor = &H00000000&
Top = 45
Width = 360
End
Begin TOOLBTN ToolBtnCopy
ButtonStyle = 1 'Windows 95
ButtonType = 0 'Command
ButtonUp = -1 'True
Enabled = 0 'False
FocusStyle = 0 'TextFocusRect
Height = 345
Left = 1750
PictureAlign = 7 'Middle CENTRE
PictureDisabled = SDIFORM1.FRX:249E
PictureEnabled = SDIFORM1.FRX:25E4
PictureXOffset = 0
PictureYOffset = 0
ShowFocus = 0 'False
TabIndex = 10
TabStop = 0 'False
TextAlign = 7 'Middle CENTRE
TextXOffset = 0
TextYOffset = 0
Tip = "Copy"
TipBackColor = &H00C0FFFF&
TipDelay = 750
TipForeColor = &H00000000&
Top = 45
Width = 360
End
Begin TOOLBTN ToolBtnPaste
ButtonStyle = 1 'Windows 95
ButtonType = 0 'Command
ButtonUp = -1 'True
Enabled = 0 'False
FocusStyle = 0 'TextFocusRect
Height = 345
Left = 2110
PictureAlign = 7 'Middle CENTRE
PictureDisabled = SDIFORM1.FRX:2712
PictureEnabled = SDIFORM1.FRX:2858
PictureXOffset = 0
PictureYOffset = 0
ShowFocus = 0 'False
TabIndex = 11
TabStop = 0 'False
TextAlign = 7 'Middle CENTRE
TextXOffset = 0
TextYOffset = 0
Tip = "Paste"
TipBackColor = &H00C0FFFF&
TipDelay = 750
TipForeColor = &H00000000&
Top = 45
Width = 360
End
Begin TOOLBTN ToolBtnFind
ButtonStyle = 1 'Windows 95
ButtonType = 0 'Command
ButtonUp = -1 'True
FocusStyle = 0 'TextFocusRect
Height = 345
Left = 3765
PictureAlign = 7 'Middle CENTRE
PictureDisabled = SDIFORM1.FRX:2992
PictureEnabled = SDIFORM1.FRX:2ACC
PictureXOffset = 0
PictureYOffset = 0
ShowFocus = 0 'False
TabIndex = 12
TabStop = 0 'False
TextAlign = 7 'Middle CENTRE
TextXOffset = 0
TextYOffset = 0
Tip = "Find"
TipBackColor = &H00C0FFFF&
TipDelay = 750
TipForeColor = &H00000000&
Top = 45
Width = 360
End
Begin TOOLBTN ToolBtnDelete
ButtonStyle = 1 'Windows 95
ButtonType = 0 'Command
ButtonUp = -1 'True
FocusStyle = 0 'TextFocusRect
Height = 345
Left = 4125
PictureAlign = 7 'Middle CENTRE
PictureDisabled = SDIFORM1.FRX:2BFA
PictureEnabled = SDIFORM1.FRX:2CFC
PictureXOffset = 0
PictureYOffset = 0
ShowFocus = 0 'False
TabIndex = 13
TabStop = 0 'False
TextAlign = 7 'Middle CENTRE
TextXOffset = 0
TextYOffset = 0
Tip = "Delete"
TipBackColor = &H00C0FFFF&
TipDelay = 750
TipForeColor = &H00000000&
Top = 45
Width = 360
End
Begin TOOLBTN ToolBtnHelp
ButtonStyle = 1 'Windows 95
ButtonType = 0 'Command
ButtonUp = -1 'True
FocusStyle = 0 'TextFocusRect
Height = 345
Left = 4485
PictureAlign = 7 'Middle CENTRE
PictureDisabled = SDIFORM1.FRX:2DFE
PictureEnabled = SDIFORM1.FRX:2F38
PictureXOffset = 0
PictureYOffset = 0
ShowFocus = 0 'False
TabIndex = 14
TabStop = 0 'False
TextAlign = 7 'Middle CENTRE
TextXOffset = 0
TextYOffset = 0
Tip = "Help"
TipBackColor = &H00C0FFFF&
TipDelay = 750
TipForeColor = &H00000000&
Top = 45
Width = 360
End
End
Begin Menu mnuFile
Caption = "&File"
Begin Menu mnuExit
Caption = "E&xit"
End
End
End
Sub Form_Unload (Cancel As Integer)
End
End Sub
Sub mnuExit_Click ()
'Close Application
Unload Me
End Sub
Sub ToolBtn4_Click ()
Dim state As Integer
state = True
ToolBtnNew.Enabled = state
ToolBtnOpen.Enabled = state
ToolBtnSave.Enabled = state
ToolBtnCut.Enabled = state
ToolBtnCopy.Enabled = state
ToolBtnPaste.Enabled = state
ToolBtnBold.Enabled = state
ToolBtnItalic.Enabled = state
ToolBtnUline.Enabled = state
ToolBtnFind.Enabled = state
ToolBtnDelete.Enabled = state
ToolBtnHelp.Enabled = state
End Sub
Sub ToolBtn5_Click ()
Dim state As Integer
state = False
ToolBtnNew.Enabled = state
ToolBtnOpen.Enabled = state
ToolBtnSave.Enabled = state
ToolBtnCut.Enabled = state
ToolBtnCopy.Enabled = state
ToolBtnPaste.Enabled = state
ToolBtnBold.Enabled = state
ToolBtnItalic.Enabled = state
ToolBtnUline.Enabled = state
ToolBtnFind.Enabled = state
ToolBtnDelete.Enabled = state
ToolBtnHelp.Enabled = state
End Sub